import { $t } from "/@/plugins/i18n";
import type { RouteConfigsTable } from "/#/index";
const Layout = () => import("/@/layout/index.vue");

const systemRoute: RouteConfigsTable = {
  path: "/system",
  name: "system",
  component: Layout,
  redirect: "/system/config",
  meta: {
    icon: "ep-tools",
    title: '系统管理',
    rank: 99999
  },
  children: [
    {
      path: "/system/config",
      name: "config",
      component: () => import("./config/index.vue"),
      meta: {
        title: '系统配置'
      }
    },
    {
      path: "/system/access-log",
      name: "access-log",
      component: () => import("./access-log/index.vue"),
      meta: {
        title: '访问日志'
      }
    },
    {
      path: "/system/generator",
      name: "generator",
      component: () => import("./generator/index.vue"),
      meta: {
        title: '代码生成'
      }
    },
  ]
};

export default systemRoute;
